# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.CloudSupport.V2beta.Model.Media do
  @moduledoc """
  # gdata.* are outside protos with mising documentation

  ## Attributes

  *   `algorithm` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `bigstoreObjectRef` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `blobRef` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `blobstore2Info` (*type:* `GoogleApi.CloudSupport.V2beta.Model.Blobstore2Info.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `compositeMedia` (*type:* `list(GoogleApi.CloudSupport.V2beta.Model.CompositeMedia.t)`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `contentType` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `contentTypeInfo` (*type:* `GoogleApi.CloudSupport.V2beta.Model.ContentTypeInfo.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `cosmoBinaryReference` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `crc32cHash` (*type:* `integer()`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `diffChecksumsResponse` (*type:* `GoogleApi.CloudSupport.V2beta.Model.DiffChecksumsResponse.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `diffDownloadResponse` (*type:* `GoogleApi.CloudSupport.V2beta.Model.DiffDownloadResponse.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `diffUploadRequest` (*type:* `GoogleApi.CloudSupport.V2beta.Model.DiffUploadRequest.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `diffUploadResponse` (*type:* `GoogleApi.CloudSupport.V2beta.Model.DiffUploadResponse.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `diffVersionResponse` (*type:* `GoogleApi.CloudSupport.V2beta.Model.DiffVersionResponse.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `downloadParameters` (*type:* `GoogleApi.CloudSupport.V2beta.Model.DownloadParameters.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `filename` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `hash` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `hashVerified` (*type:* `boolean()`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `inline` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `isPotentialRetry` (*type:* `boolean()`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `length` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `md5Hash` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `mediaId` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `objectId` (*type:* `GoogleApi.CloudSupport.V2beta.Model.ObjectId.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `path` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `referenceType` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `sha1Hash` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `sha256Hash` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `timestamp` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  *   `token` (*type:* `String.t`, *default:* `nil`) - # gdata.* are outside protos with mising documentation
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :algorithm => String.t() | nil,
          :bigstoreObjectRef => String.t() | nil,
          :blobRef => String.t() | nil,
          :blobstore2Info => GoogleApi.CloudSupport.V2beta.Model.Blobstore2Info.t() | nil,
          :compositeMedia => list(GoogleApi.CloudSupport.V2beta.Model.CompositeMedia.t()) | nil,
          :contentType => String.t() | nil,
          :contentTypeInfo => GoogleApi.CloudSupport.V2beta.Model.ContentTypeInfo.t() | nil,
          :cosmoBinaryReference => String.t() | nil,
          :crc32cHash => integer() | nil,
          :diffChecksumsResponse =>
            GoogleApi.CloudSupport.V2beta.Model.DiffChecksumsResponse.t() | nil,
          :diffDownloadResponse =>
            GoogleApi.CloudSupport.V2beta.Model.DiffDownloadResponse.t() | nil,
          :diffUploadRequest => GoogleApi.CloudSupport.V2beta.Model.DiffUploadRequest.t() | nil,
          :diffUploadResponse => GoogleApi.CloudSupport.V2beta.Model.DiffUploadResponse.t() | nil,
          :diffVersionResponse =>
            GoogleApi.CloudSupport.V2beta.Model.DiffVersionResponse.t() | nil,
          :downloadParameters => GoogleApi.CloudSupport.V2beta.Model.DownloadParameters.t() | nil,
          :filename => String.t() | nil,
          :hash => String.t() | nil,
          :hashVerified => boolean() | nil,
          :inline => String.t() | nil,
          :isPotentialRetry => boolean() | nil,
          :length => String.t() | nil,
          :md5Hash => String.t() | nil,
          :mediaId => String.t() | nil,
          :objectId => GoogleApi.CloudSupport.V2beta.Model.ObjectId.t() | nil,
          :path => String.t() | nil,
          :referenceType => String.t() | nil,
          :sha1Hash => String.t() | nil,
          :sha256Hash => String.t() | nil,
          :timestamp => String.t() | nil,
          :token => String.t() | nil
        }

  field(:algorithm)
  field(:bigstoreObjectRef)
  field(:blobRef)
  field(:blobstore2Info, as: GoogleApi.CloudSupport.V2beta.Model.Blobstore2Info)
  field(:compositeMedia, as: GoogleApi.CloudSupport.V2beta.Model.CompositeMedia, type: :list)
  field(:contentType)
  field(:contentTypeInfo, as: GoogleApi.CloudSupport.V2beta.Model.ContentTypeInfo)
  field(:cosmoBinaryReference)
  field(:crc32cHash)
  field(:diffChecksumsResponse, as: GoogleApi.CloudSupport.V2beta.Model.DiffChecksumsResponse)
  field(:diffDownloadResponse, as: GoogleApi.CloudSupport.V2beta.Model.DiffDownloadResponse)
  field(:diffUploadRequest, as: GoogleApi.CloudSupport.V2beta.Model.DiffUploadRequest)
  field(:diffUploadResponse, as: GoogleApi.CloudSupport.V2beta.Model.DiffUploadResponse)
  field(:diffVersionResponse, as: GoogleApi.CloudSupport.V2beta.Model.DiffVersionResponse)
  field(:downloadParameters, as: GoogleApi.CloudSupport.V2beta.Model.DownloadParameters)
  field(:filename)
  field(:hash)
  field(:hashVerified)
  field(:inline)
  field(:isPotentialRetry)
  field(:length)
  field(:md5Hash)
  field(:mediaId)
  field(:objectId, as: GoogleApi.CloudSupport.V2beta.Model.ObjectId)
  field(:path)
  field(:referenceType)
  field(:sha1Hash)
  field(:sha256Hash)
  field(:timestamp)
  field(:token)
end

defimpl Poison.Decoder, for: GoogleApi.CloudSupport.V2beta.Model.Media do
  def decode(value, options) do
    GoogleApi.CloudSupport.V2beta.Model.Media.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.CloudSupport.V2beta.Model.Media do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
